package model;

//power down is instant; but power up needs to take 10 ticks.  
/**
 * @author Chris
 */
public class State
{
    public State() {
        state = 10;
    }
    
    // state 0-9 is powered down and 10 is powered up.
    private int state;
    
    public void incrementPower()
    {
        state++;
        if ( state > 10 ) state = 10;
    }
    
    public void powerDown()
    {
        state = 0;
    }
    
    public boolean isPowered()
    {
        return state == 10;
    }
}
